Former U.S. Rep. Anthony Weiner, whose penchant for sexting strangers online ended his political career and led to an investigation that upended the presidential race, pleaded guilty Friday to criminal charges in connection with his online communications with a 15-year-old girl.